package com.usian.search.feign;

import com.usian.model.article.pojos.ApArticle;
import com.usian.model.article.pojos.ApArticleContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description:
 * @Auther:ASS
 * @Date:2023/3/8 18:26
 */
@FeignClient(value = "leadnews-article")
public interface ArticleFeign {


    @PostMapping("/api/v1/article/findArticle")
    public List<ApArticle> findArticle();


    @PostMapping("/api/v1/articleContent/findByArticleId")
    public ApArticleContent findByArticleId(@RequestParam Long articleId);
}
